﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace SoSlam.Common.ClientLogic
{
    public class AnimationDefinition
    {
        /// <summary>
        /// Name of the associated asset
        /// </summary>
        public string AssetName { get; set; }

        /// <summary>
        /// Size of frames in the sprite sheet
        /// </summary>
        public Point FrameSize { get; set; }

        /// <summary>
        /// Offset in the sprite sheet
        /// </summary>
        public Point Offset { get; set; }

        /// <summary>
        /// Number of frames in the sprite sheet
        /// </summary>
        public Point NbFrames { get; set; }

        /// <summary>
        /// Frame rate per second
        /// </summary>
        public int FrameRate { get; set; }

        /// <summary>
        /// True if the animation should continue after the end, false otherwise
        /// </summary>
        public bool Loop { get; set; }

        public float Scale { get; set; }

        public AnimationDefinition()
        {
            Offset = new Point();
            Scale = 1.0f;
        }
    }
}
